<?php

/******************************************************************
A class that represents the result of a XML file from a book xml
******************************************************************/

class Book
{

    var $book_name;
	var $chapter_names;
	var $chapter_numbers;
	var $lead_author_email;
	var $author_list;
	var $chapter_text;
	
	
	function Book ($book_name,$chapter_names,$author_list,$chapter_text,$lead_author_email,$chapter_numbers)
    {
	
		$this->book_name    = $book_name;
		$this->chapter_names    = $chapter_names;
		$this->author_list    = $author_list;
		$this->chapter_text    = $chapter_text;
		$this->lead_author_email    = $lead_author_email;
		$this->chapter_numbers    = $chapter_numbers;
    }

	//returns a string representing the books name
    function get_name ()
    {
		return $this->book_name;
    }
	
	//returns an array of strings representing the chapter names
    function get_chapter_names ()
    {
		return $this->chapter_names;
    }
	
	//returns an array of strings representing the authors emails
    function get_author_list ()
    {
		return $this->author_list;
    }
	
	//returns an array of array strings representing the chapter paragraphs per chapter
	//will include the html, so if wanting to store an img include the html to store it
    function get_chapter_text ()
    {
		return $this->chapter_text;
    }
	
	function get_lead_author_email ()
    {
		return $this->lead_author_email;
    }
	
	function get_chapter_numbers ()
    {
		return $this->chapter_numbers;
    }
}

?>